import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    name: '登录',
    meta: {
        keepAlive: false
    },
    component: resolve => require(['@/views/login/login'], resolve),
   
},{
    path: '/home',
    name: '首页',
    redirect: '/gismap',
    component: resolve => require(['@/views/home/home'], resolve),
    children: [{
        path: '/gismap',
        name: 'GIS一张图',
        meta: {
          noStationcode:true,
          haveTree:'not',
        },
        component: resolve => require(['@/views/home/gisMap'], resolve),
        children: []
      },
      //数据采集
      {
        path: '/dataCollection',
        name: '数据采集',
        component: resolve => require(['@/views/dataCollection/index'], resolve),
        children: [{
          path: '/dataCollection/dataAggre',
          name: '数据汇总',
          component: resolve => require(['@/views/dataCollection/index'], resolve),
          children: [{
              path: '/dataCollection/dataAggre/NetworkStatistics',
              name: '联网统计',
              meta: {
                singleSelect: false, //多选
                treeCode:'hiddenTree',
                haveTree:'haveHidden',
              },
              component: resolve => require(['@/views/dataCollection/NetworkStatistics'], resolve),
            },
            {
              path: '/dataCollection/dataAggre/currentData',
              name: '实时数据',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/dataCollection/currentData'], resolve),
            },
            {
              path: '/dataCollection/dataAggre/minuteData',
              name: '分钟数据',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/dataCollection/minuteData'], resolve),
            }, {
              path: '/dataCollection/dataAggre/historyData',
              name: '历史数据',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/dataCollection/historyData'], resolve),
            },
            {
              path: '/dataCollection/dataAggre/manuMonitor',
              name: '手工监测',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/dataCollection/manuMonitor'], resolve),
            },
            {
              path: '/dataCollection/dataAggre/remoteMaint',
              name: '远程维护',
              meta: {
                singleSelect: false,
                treeCode:true,
                haveTree:'haveHidden',
              },
              component: resolve => require(['@/views/dataCollection/remoteMaint'], resolve),
            },
            {
              path: '/dataCollection/dataAggre/alarmManage',
              name: '报警管理',
              meta: {
                singleSelect: false,
                treeCode:true,
                haveTree:'haveHidden',
              },
              component: resolve => require(['@/views/dataCollection/alarmManage'], resolve),
            },
          ]
        }, {
          path: '/dataCollection/commanage',
          name: '通讯管理',
          component: resolve => require(['@/views/dataCollection/index'], resolve),
          children: [{
            path: '/dataCollection/commanage/singleTrafficAnalysis',
            name: '单站联网通讯分析',
            meta: {
              singleSelect: true,
              haveTree:'have',
            },
            component: resolve => require(['@/views/dataCollection/singleTrafficAnalysis'], resolve),
          }, {
            path: '/dataCollection/commanage/trafficAnalysis',
            name: '联网通讯分析',
            meta: {
              singleSelect: false,
              haveTree:'have',
            },
            component: resolve => require(['@/views/dataCollection/trafficAnalysis'], resolve),
          }, ]
        }, ],
      },
      {
        path: '/dataCollection/realtimeVideo',
        name: '实时视频',
        component: resolve => require(['@/views/dataCollection/realtimeVideo'], resolve),
      },
      //质量控制
      {
        path: '/qualityControl',
        name: '质量控制',
        component: resolve => require(['@/views/qualityControl/index'], resolve),
        children: [{
          path: '/qualityControl/testdata',
          name: '测试数据',
          component: resolve => require(['@/views/qualityControl/index'], resolve),
          children: [{
              path: '/qualityControl/testdata/contrastTest',
              name: '自动与手工比对测试',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/contrastTest'], resolve),
            },
            {
              path: '/qualityControl/testdata/intervenExami',
              name: '集成干预检查',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/intervenExami'], resolve),
            },
            {
              path: '/qualityControl/testdata/linearVerifi',
              name: '多点线性核查',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/linearVerifi'], resolve),
            },

            {
              path: '/qualityControl/testdata/paramverifi',
              name: '常规五参数周核查',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/paramverifi'], resolve),
            },
            {
              path: '/qualityControl/testdata/rateRecovery',
              name: '加标回收率',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/rateRecovery'], resolve),
            },

            {
              path: '/qualityControl/testdata/sampleComparison',
              name: '实际水样比对',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/sampleComparison'], resolve),
            },
            {
              path: '/qualityControl/testdata/spanDrift',
              name: '24小时跨度漂移',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/spanDrift'], resolve),
            },
            {
              path: '/qualityControl/testdata/verifiDdata',
              name: '标样核查数据',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/verifiDdata'], resolve),
            },

            {
              path: '/qualityControl/testdata/zeroDrift',
              name: '24小时零点漂移',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/zeroDrift'], resolve),
            },
            {
              path: '/qualityControl/testdata/logParam',
              name: '日志及状态量参数',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/logParam'], resolve),
            },
            {
              path: '/qualityControl/testdata/realWaterComparison',
              name: '实际水样比对',//(new)
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/realWaterComparison'], resolve),
            },
            {
              path: '/qualityControl/testdata/sampleVerification',
              name: '样品核查',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/sampleVerification'], resolve),
            },
            {
              path: '/qualityControl/testdata/zeroSpanCheck',
              name: '零点和量程核查',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/zeroSpanCheck'], resolve),
            },
            {
              path: '/qualityControl/testdata/zeroDriftVerification',
              name: '24小时零点漂移核查',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/zeroDriftVerification'], resolve),
            },
          ]
        }, {
          path: '/qualityControl/quaset',
          name: '质控设置',
          component: resolve => require(['@/views/qualityControl/index'], resolve),
          children: [{
              path: '/qualityControl/quaset/weekqualitycontrolSet',
              name: '周质控设置',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/weekqualitycontrolSet'], resolve),
            },
            {
              path: '/qualityControl/quaset/dayqualitycontrolSet',
              name: '日质控设置',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/dayqualitycontrolSet'], resolve),
            },
            {
              path: '/qualityControl/quaset/mousequalitycontrolSet',
              name: '月质控设置',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/mousequalitycontrolSet'], resolve),
            },
            {
              path: '/qualityControl/quaset/setParams',
              name: '设置参数',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/setParams'], resolve),
            },
          ]
        }, {
          path: '/qualityControl/yccontrol',
          name: '远程设置',
          component: resolve => require(['@/views/qualityControl/index'], resolve),
          children: [{
              path: '/qualityControl/yccontrol/cuntercontrolLog',
              name: '反控日志',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/cuntercontrolLog'], resolve),
            },
            {
              path: '/qualityControl/yccontrol/remoteControl',
              name: '远程控制',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/remoteControl'], resolve),
            },
          ]
        }, {
          path: '/qualityControl/zkstatics',
          name: '质控分析',
          component: resolve => require(['@/views/qualityControl/index'], resolve),
          children: [{
              path: '/qualityControl/zkstatics/dayexamAnalysis',
              name: '日质控考核分析',
              meta: {
                singleSelect: false,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/dayexamAnalysis'], resolve),
            },

            {
              path: '/qualityControl/zkstatics/examAnalysis',
              name: '质控考核分析',
              meta: {
                singleSelect: false,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/examAnalysis'], resolve),
            }, {
              path: '/qualityControl/zkstatics/dataAnalysis',
              name: '数据有效性分析',
              meta: {
                singleSelect: false,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/dataAnalysis'], resolve),
            },
            {
              path: '/qualityControl/zkstatics/singlemonthStatis',
              name: '单站月质控考核分析',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/singlemonthStatis'], resolve),
            },
            {
              path: '/qualityControl/zkstatics/monthLedger',
              name: '质控月度报表台账',
              meta: {
                singleSelect: false,
                haveTree:'have',
              },
              component: resolve => require(['@/views/qualityControl/monthLedger'], resolve),
            },
          ]
        }],
      },
      // 数据审核
      {
        path: '/dataAudit',
        name: '数据审核',
        component: resolve => require(['@/views/dataAudit/index'], resolve),
        children: [{
          path: '/dataAudit/data',
          name: '数据审核',
          component: resolve => require(['@/views/dataAudit/index'], resolve),
          children: [{
              path: '/dataAudit/data/threelevelAudit',
              name: '三级审核(总站)',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/dataAudit/threelevelAudit'], resolve),
            },
            {
              path: '/dataAudit/data/auditLog',
              name: '审核日志',
              meta: {
                noStationcode: true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/dataAudit/auditLog'], resolve),
            },
          ],
        }, {
          path: '/dataAudit/audit',
          name: '审核管理',
          component: resolve => require(['@/views/dataAudit/index'], resolve),
          children: [

            {
              path: '/dataAudit/audit/auditStatis',
              name: '审核情况统计(总站)',
              meta: {
                singleSelect:false,
                haveTree:'have',
              },
              component: resolve => require(['@/views/dataAudit/auditStatis'], resolve),
            },
            {
              path: '/dataAudit/audit/doubtdataStatis',
              name: '存疑数据统计',
              meta: {
                singleSelect: false,
                haveTree:'have',
              },
              component: resolve => require(['@/views/dataAudit/doubtdataStatis'], resolve),
            },
            {
              path: '/dataAudit/audit/invaliddataStatis',
              name: '无效数据统计',
              meta: {
                singleSelect: false,
                haveTree:'have',
              },
              component: resolve => require(['@/views/dataAudit/invaliddataStatis'], resolve),
            },
          ],
        }],
      },
      //综合应用
      {
        path: '/colligateApplication',
        name: '综合应用',
        component: resolve => require(['@/views/colligateApplication/index'], resolve),
        children: [{
          path: '/colligateApplication/datacanvas',
          name: '数据图表',
          component: resolve => require(['@/views/colligateApplication/index'], resolve),
          children: [{
              path: '/colligateApplication/datacanvas/multtrendChange',
              name: '断面多参数趋势变化',
              meta: {
                haveTree:'have',
              },
              component: resolve => require(['@/views/colligateApplication/multtrendChange'], resolve),
            },
            {
              path: '/colligateApplication/datacanvas/paramBlockdiagram',
              name: '断面单参数区块图',
              meta: {
                haveTree:'have',
              },
              component: resolve => require(['@/views/colligateApplication/paramBlockdiagram'], resolve),
            },
            {
              path: '/colligateApplication/datacanvas/paramScatterplot',
              name: '断面单参数散点图',
              meta: {
                haveTree:'have',
              },
              component: resolve => require(['@/views/colligateApplication/paramScatterplot'], resolve),
            },

            {
              path: '/colligateApplication/datacanvas/singletrendChange',
              name: '断面单参数趋势变化',
              meta: {
                haveTree:'have',
              },
              component: resolve => require(['@/views/colligateApplication/singletrendChange'], resolve),
            },
            {
              path: '/colligateApplication/datacanvas/trendAnalysis',
              name: '同比环比趋势分析',
              meta: {
                haveTree:'have',
              },
              component: resolve => require(['@/views/colligateApplication/trendAnalysis'], resolve),
            },
          ],
        }, {
          path: '/colligateApplication/datatable',
          name: '数据报表',
          component: resolve => require(['@/views/colligateApplication/index'], resolve),
          children: [{
            path: '/colligateApplication/datatable/scopeStatistics',
            name: '水质评价范围统计',
            meta: {
              haveTree:'not',
            },
            component: resolve => require(['@/views/colligateApplication/scopeStatistics'], resolve),
          }, {
            path: '/colligateApplication/datatable/faultStatis',
            name: '故障情况统计',
            meta: {
              haveTree:'not',
            },
            component: resolve => require(['@/views/colligateApplication/faultStatis'], resolve),
          }, {
            path: '/colligateApplication/datatable/waterqualityStatistics',
            name: '断面时段水质统计',
            meta: {
              haveTree:'not',
            },
            component: resolve => require(['@/views/colligateApplication/waterqualityStatistics'], resolve),
          }, {
            path: '/colligateApplication/datatable/singleStationReport',
            name: '自动站单站报表',
            meta: {
              haveTree:'not',
            },
            component: resolve => require(['@/views/colligateApplication/singleStationReport'], resolve),
          }, {
            path: '/colligateApplication/datatable/multiStationReport',
            name: '自动站多站报表',
            meta: {
              haveTree:'not',
            },
            component: resolve => require(['@/views/colligateApplication/multiStationReport'], resolve),
          }, {
            path: '/colligateApplication/datatable/multiStationPresentation',
            name: '自动站多站报告',
            meta: {
              haveTree:'not',
            },
            component: resolve => require(['@/views/colligateApplication/multiStationPresentation'], resolve),
          }, {
            path: '/colligateApplication/datatable/waterQualityBulletin',
            name: '地表水水质公报',
            meta: {
              haveTree:'not',
            },
            component: resolve => require(['@/views/colligateApplication/waterQualityBulletin'], resolve),
          }, ],
        }, {
          path: '/colligateApplication/analysisReport',
          name: '综合分析报表',
         
          component: resolve => require(['@/views/colligateApplication/index'], resolve),
          children: [{
            path: '/colligateApplication/analysisReport/waterQualityEvaluation',
            name: '水质评价',
            meta: {
              haveTree:'not',
            },
            component: resolve => require(['@/views/colligateApplication/waterQualityEvaluation'], resolve),
          }, {
            path: '/colligateApplication/analysisReport/waterContrastAnalysis',
            name: '水质现状对比分析',
            meta: {
              haveTree:'not',
            },
            component: resolve => require(['@/views/colligateApplication/waterContrastAnalysis'], resolve),
          }, {
            path: '/colligateApplication/analysisReport/comparisonAnalysisRates',
            name: '两率对比分析',
            meta: {
              haveTree:'not',
            },
            component: resolve => require(['@/views/colligateApplication/comparisonAnalysisRates'], resolve),
          }]
        },
        {
          path: '/colligateApplication/archivesManage',
          name: '档案管理',
          component: resolve => require(['@/views/colligateApplication/index'], resolve),
          children: [{
            path: '/colligateApplication/archivesManage/stationArchives',
            name: '一站一档',
            meta: {
              singleSelect: true,
              haveTree:'have',
            },
            component: resolve => require(['@/views/colligateApplication/stationArchives'], resolve),
          }, {
            path: '/colligateApplication/archivesManage/personArchives',
            name: '一员一档',
            meta: {
              noStationcode:true,
              singleSelect: true,
              haveTree:'have',
            },
            component: resolve => require(['@/views/colligateApplication/personArchives'], resolve),
          },]
        }],
      },
      //知识库
      {
        path: '/knowledgeHouse',
        name: '知识库',
        meta:{
          noStationcode:true,
          haveTree:'not',
        },
        component: resolve => require(['@/views/knowledgeHouse/index'], resolve),
      },
      {
        path: '/knowledgeHouse/detailPage',
        name: '知识库',
        meta:{
          noStationcode:true,
          haveTree:'not',
        },
        component: resolve => require(['@/views/knowledgeHouse/detailPage'], resolve),
      },
      //运行维护
      {
        path: '/operaAndmaint',
        name: '运行维护',
        component: resolve => require(['@/views/operaAndmaint/index'], resolve),
        children: [{
            path: '/operaAndmaint/remoteMainte',
            name: '远程维护',
            component: resolve => require(['@/views/operaAndmaint/index'], resolve),
            children: [{
              path: '/operaAndmaint/remoteMainte/workSimulation',
              name: '现场工况模拟',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/operaAndmaint/workSimulation'], resolve),
            },{
              path: '/operaAndmaint/remoteMainte/remoteInspection',
              name: '远程巡检',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/operaAndmaint/remoteInspection'], resolve),
            }]
          },
          {
            path: '/operaAndmaint/declaraManage',
            name: '申报管理',
            component: resolve => require(['@/views/operaAndmaint/index'], resolve),
            children:[{
              path: '/operaAndmaint/declaraManage/outageDeclara',
              name: '停运申报',
              meta: {
                noStationcode:true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/operaAndmaint/outageDeclara'], resolve), 
            }]
          },
          {
            path: '/operaAndmaint/task',
            name: '任务管理',
            component: resolve => require(['@/views/operaAndmaint/index'], resolve),
            children:[{
              path: '/operaAndmaint/task/taskManage',
              name: '任务管理(副本)',
              redirect: '/operaAndmaint/task/allTask',
              meta: {
                noStationcode:true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/operaAndmaint/taskManage'], resolve), 
              children:[{
                path: '/operaAndmaint/task/allTask',
                name: '全部任务',
                meta: {
                  noStationcode:true,
                  tapCode:true,
                  haveTree:'not',
                },
                component: resolve => require(['@/views/operaAndmaint/allTask'], resolve), 
              },{
                path: '/operaAndmaint/task/myTask',
                name: '我的任务',
                meta: {
                  noStationcode:true,
                  tapCode:true,
                  haveTree:'not',
                },
                component: resolve => require(['@/views/operaAndmaint/myTask'], resolve), 
              },{
                path: '/operaAndmaint/task/followTask',
                name: '关注的任务',
                meta: {
                  noStationcode:true,
                  tapCode:true,
                  haveTree:'not',
                },
                component: resolve => require(['@/views/operaAndmaint/followTask'], resolve), 
              },{
                path: '/operaAndmaint/task/shareTask',
                name: '共享给我的任务',
                meta: {
                  noStationcode:true,
                  tapCode:true,
                  haveTree:'not',
                },
                component: resolve => require(['@/views/operaAndmaint/shareTask'], resolve), 
              },{
                path: '/operaAndmaint/task/taskStat',
                name: '任务统计',
                meta: {
                  noStationcode:true,
                  tapCode:true,
                  haveTree:'not',
                },
                component: resolve => require(['@/views/operaAndmaint/taskStat'], resolve), 
              },{
                path: '/operaAndmaint/task/taskReport',
                name: '任务报表',
                meta: {
                  noStationcode:true,
                  tapCode:true,
                  haveTree:'not',
                },
                component: resolve => require(['@/views/operaAndmaint/taskReport'], resolve), 
              }]
            }]
          },
          {
            path: '/operaAndmaint/infoStatis',
            name: '信息统计',
            component: resolve => require(['@/views/operaAndmaint/index'], resolve),
            children: [{
                path: '/operaAndmaint/infoStatis/faultStatis',
                name: '运行故障统计',
                meta: {
                  singleSelect: false,
                  haveTree:'have',
                },
                component: resolve => require(['@/views/operaAndmaint/faultStatis'], resolve),
              },
              {
                path: '/operaAndmaint/infoStatis/qualityAnalysis',
                name: '仪器质量分析',
                meta: {
                  singleSelect: false,
                  haveTree:'have',
                },
                component: resolve => require(['@/views/operaAndmaint/qualityAnalysis'], resolve),
              }
            ]
          },
          {
            path: '/operaAndmaint/fieldMaint',
            name: '现场维护',
            component: resolve => require(['@/views/operaAndmaint/index'], resolve),
            children: [{
              path: '/operaAndmaint/fieldMaint/stationManage',
              name: '停站管理',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/operaAndmaint/stationManage'], resolve),
            }, {
              path: '/operaAndmaint/fieldMaint/manageLedger',
              name: '运维台账',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/operaAndmaint/manageLedger'], resolve),
            }, {
              path: '/operaAndmaint/fieldMaint/manageStatis',
              name: '运维汇总统计',
              meta: {
                singleSelect: true,
                haveTree:'have',
              },
              component: resolve => require(['@/views/operaAndmaint/manageStatis'], resolve),
            }]
          },
          {
            path: '/operaAndmaint/baseInfo',
            name: '基础信息',
            component: resolve => require(['@/views/operaAndmaint/index'], resolve),
            children: [{
              path: '/operaAndmaint/baseInfo/operationCompany',
              name: '运维单位管理',
              meta: {
                noStationcode:true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/operaAndmaint/operationCompany'], resolve),
            }, {
              path: '/operaAndmaint/baseInfo/operationPerson',
              name: '运维人员管理',
              meta: {
                noStationcode:true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/operaAndmaint/operationPerson'], resolve),
            }, {
              path: '/operaAndmaint/baseInfo/operationVehicle',
              name: '运维车辆管理',
              meta: {
                noStationcode:true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/operaAndmaint/operationVehicle'], resolve),
            },
            {
              path: '/operaAndmaint/baseInfo/companyDetail',
              name: '企业详情',
              meta: {
                noStationcode:true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/operaAndmaint/companyDetail'], resolve),
            }]
          }
        ],
      },

      //系统管理
      {
        path: '/systemManage',
        name: '系统管理',
        component: resolve => require(['@/views/systemManage/index'], resolve),
        children: [{
          path: '/systemManage/dictionary',
          name: '数据字典',
          component: resolve => require(['@/views/systemManage/index'], resolve),
          children: [{
            path: '/systemManage/dictionary/waterManege',
            name: '水系管理',
            meta:{
              noStationcode:true,
              haveTree:'not',
            },
            component: resolve => require(['@/views/systemManage/waterManege'], resolve),
          }, {
            path: '/systemManage/dictionary/areaMange',
            name: '政区管理',
            meta:{
              noStationcode:true,
              haveTree:'not',
            },
            component: resolve => require(['@/views/systemManage/areaManage'], resolve),
          }]
        }, {
          path: '/systemManage/sysSet',
          name: '系统设置',
          component: resolve => require(['@/views/systemManage/index'], resolve),
          children: [{
            path: '/systemManage/sysSet/userManage',
            name: '用户管理',
            meta:{
              noStationcode:true,
              haveTree:'not',
            },
            component: resolve => require(['@/views/systemManage/userManage'], resolve),
          }, {
            path: '/systemManage/sysSet/roleManage',
            name: '角色管理',
            meta:{
              noStationcode:true,
              haveTree:'not',
            },
            component: resolve => require(['@/views/systemManage/roleManage'], resolve),
          }, {
            path: '/systemManage/sysSet/menuManage',
            name: '功能菜单管理',
            meta:{
              noStationcode:true,
              haveTree:'not',
            },
            component: resolve => require(['@/views/systemManage/menuManage'], resolve),
          }, {
            path: '/systemManage/sysSet/journalManage',
            name: '日志管理',
            meta:{
              noStationcode:true,
              haveTree:'not',
            },
            component: resolve => require(['@/views/systemManage/journalManage'], resolve),
          }]
        }, {
          path: '/systemManage/mesManage',
          name: '基础信息管理',
          component: resolve => require(['@/views/systemManage/index'], resolve),
          children: [{
            path: '/systemManage/mesManage/stationManage',
            name: '测站信息管理',
            meta: {
              noStationcode:false,
              singleSelect: true,
              haveTree:'have',
            },
            component: resolve => require(['@/views/systemManage/stationManage'], resolve),
          }, {
            path: '/systemManage/mesManage/messageSet',
            name: '监测项目信息设置',
            meta: {
              noStationcode:true,
              haveTree:'not',
            },
            component: resolve => require(['@/views/systemManage/messageSet'], resolve),
          }, {
            path: '/systemManage/mesManage/waterEvaluate',
            name: '水质类别评价标准',
            meta: {
              noStationcode:true,
              haveTree:'not',
            },
            component: resolve => require(['@/views/systemManage/waterEvaluate'], resolve),
          }, {
            path: '/systemManage/mesManage/agreeManage',
            name: '协议管理',
            meta: {
              noStationcode:true,
              haveTree:'not',
            },
            component: resolve => require(['@/views/systemManage/agreeManage'], resolve),
          }, {
            path: '/systemManage/mesManage/instrucManage',
            name: '指令管理',
            meta: {
              noStationcode:true,
              haveTree:'not',
            },
            component: resolve => require(['@/views/systemManage/instrucManage'], resolve),
          }, {
            path: '/systemManage/mesManage/processManage',
            name: '流程管理',
            meta: {
              noStationcode:true,
              haveTree:'not',
            },
            component: resolve => require(['@/views/systemManage/processManage'], resolve),
          }]
        }],
      },
      //考核评估
      {
        path: '/assessment',
        name: '系统管理',
        component: resolve => require(['@/views/assessment/index'], resolve),
        children: [{
            path: '/assessment/company',
            name: '运维公司考核',
            component: resolve => require(['@/views/assessment/index'], resolve),
            children: [{
              path: '/assessment/company/personAssess',
              name: '运维人员考核',
              meta: {
                haveTree:'not',
              },
              component: resolve => require(['@/views/assessment/personAssess'], resolve),
            }, {
              path: '/assessment/company/companyAssess',
              name: '分公司考核',
              meta: {
                noStationcode:true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/assessment/companyAssess'], resolve),
            }]
          },
          {
            path: '/assessment/monitor',
            name: '环境监测考核',
            component: resolve => require(['@/views/assessment/index'], resolve),
            children: [{
              path: '/assessment/monitor/monitorAssess',
              name: '环境监测考核',
              meta: {
                noStationcode:true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/assessment/monitorAssess'], resolve),
            }]
          }
        ]
      },
      //动态管控
      {
        path: '/dynamiControl',
        name: '动态管控',
        component: resolve => require(['@/views/dynamiControl/index'], resolve),
        children: [{
            path: '/dynamiControl/rtControl',
            name: '实时管控',
            component: resolve => require(['@/views/dynamiControl/index'], resolve),
            children: [{
              path: '/dynamiControl/rtControl/alarmManage',
              name: '报警管理',
              meta: {
                noStationcode:true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/dynamiControl/alarmManage'], resolve),
            }, {
              path: '/dynamiControl/rtControl/realtimeData',
              name: '实时数据',
              meta: {
                noStationcode:true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/dynamiControl/realtimeData'], resolve),
            }, {
              path: '/dynamiControl/rtControl/realtimeParam',
              name: '实时参数',
              meta: {
                noStationcode:true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/dynamiControl/realtimeParam'], resolve),
            }]
          },
          {
            path: '/dynamiControl/monitor',
            name: '历史记录',
            component: resolve => require(['@/views/dynamiControl/index'], resolve),
            children: [{
              path: '/dynamiControl/monitor/historyRecord',
              name: '历史记录',
              meta: {
                noStationcode:true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/dynamiControl/historyRecord'], resolve),
            }]
          }, {
            path: '/dynamiControl/entrance',
            name: '门禁记录',
            component: resolve => require(['@/views/dynamiControl/index'], resolve),
            children: [{
              path: '/dynamiControl/entrance/entraRecord',
              name: '门禁记录',
              meta: {
                noStationcode:true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/dynamiControl/entraRecord'], resolve),
            }]
          }, {
            path: '/dynamiControl/params',
            name: '参数设置',
            component: resolve => require(['@/views/dynamiControl/index'], resolve),
            children: [{
              path: '/dynamiControl/params/paramSet',
              name: '参数设置',
              meta: {
                noStationcode:true,
                haveTree:'not',
              },
              component: resolve => require(['@/views/dynamiControl/paramSet'], resolve),
            }]
          }
        ]
      }
    ]
  }]
})
